<?php
namespace  App;
use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    protected $table = 'posts';
    protected $fillable = ['user_id','title','cover','content','author','status','comment_status','tag','xcx','level','view'];
    public $timestamps = true;
    public function TagGroup()
    {
        return $this->hasMany('App\TagGroup', 'post_id');
    }
}